<h1>Listing courses</h1>

<table>
  <tr>
    <th>Name</th>
    <th>Description</th>
    <th>Logo url</th>
    <th>Term</th>
    <th>Scheduled time</th>
    <th>Syllabus url</th>
    <th>Schedule url</th>
  </tr>

<% for course in @courses %>
  <tr>
    <td><%=h course.name %></td>
    <td><%=h course.description %></td>
    <td><%=h course.logo_url %></td>
    <td><%=h course.term %></td>
    <td><%=h course.scheduled_time %></td>
    <td><%=h course.syllabus_url %></td>
    <td><%=h course.schedule_url %></td>
    <td><%= link_to 'Show', course %></td>
    <td><%= link_to 'Edit', edit_course_path(course) %></td>
    <td><%= link_to 'Destroy', course, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New course', new_course_path %>
